/**
 * 
 */

/**
 * @author andipandi
 *
 */
public interface GatewayListener {
	
	/**
	 * is called, if a com port error occured (see InfrasoundGateway.error)
	 */
	public void gatewayErrorEvent();
	
	/**
	 * is called, if a node sent a INFO packet
	 * @param nodeID
	 */
	public void newNodeEvent(int id);

	/**
	 * called, if raw data was received
	 * @param bytes
	 * @param len
	 */
	public void dataEvent(int id);
	
	/**
	 * called, if text message was received
	 * @param bytes
	 * @param len
	 */
	public void msgEvent(String str);
}